<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/jsp/usertop.jsp"%>
<%@ include file="/jsp/jscommom.jsp"%>
<%@ taglib uri="/struts-bean" prefix="bean"%>
<%@ taglib uri="/struts-html" prefix="html"%>
<%@ taglib uri="/struts-logic" prefix="logic"%>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>欢迎来到龙岗区政府主办公益性职介所</title>
		<link href="/css/login.css" rel="stylesheet" type="text/css" />
	</head>
	<script type="text/javascript" src="/js/checkreguserinfo.js"
		charset="UTF-8">
		</script>
<script type="text/javascript">
<bean:write name="com_struts_web_user_register_RegUserInfoForm" property="printStaSql" filter="false"/>

function reset(){
 document.forms[0].reset();
 }
 
		//处理列表信息
function Left2Right(left,right,maxItem,allowRepeat,superaddition){

if(!allowRepeat)allowRepeat = false;
	if(!superaddition)superaddition = "";
	if(!left || !right || left.tagName!='SELECT' || left.tagName!='SELECT') return false;
	if(!maxItem || isNaN(maxItem) || maxItem<0)maxItem=0;
	if(maxItem>0 && right.options.length>=maxItem)
	{
		alert("不能超过" + maxItem + "项!");
		return;
	}
	for(var i=0; i<left.options.length;i++)
	{
		if(left.options[i].selected)
		{
			if(!allowRepeat && findItem(right,left.options[i].text,left.options[i].value,1)!=null)
				alert("\"" + left.options[i].text + "\"" + "已经存在,不能重复添加!");
			else{
				if(superaddition=="")
					right.options.add(new Option(left.options[i].text,left.options[i].value));
				else
					right.options.add(new Option(superaddition + "－" + left.options[i].text,left.options[i].value));
					
				} 
		}
	}

}

//处理列表信息
function deloption(right){
   for(var i=0;i<right.options.length;i++){
     if(right.options[i].selected){
       right.options.remove(i);
     }
   }
}

function findItem(target,text,value,flag)
{
	if(!flag) flag = 0;
	if(!target || target.tagName!='SELECT') return null;
	for(var i=0;i<target.options.length;i++)
	{
		if(flag==1 && target.options[i].value==value) return target.options[i];
		if(flag==2 && target.options[i].text==text) return target.options[i];
		if(target.options[i].text==text&&target.options[i].value==value) return target.options[i];
	}
	return null;
}
var chosen_sort=0;
function doSubstation() {
chosen_sort = document.all.stationSort.selectedIndex;
if(chosen_sort==0 && document.all.substation.options.length>0){
   document.all.substation.options.length=0;
}else{
document.all.stationSort.blur();
document.all.substation.options.length = 0 ;
for (var i = 0 ; i < substation [chosen_sort].length ; i++){
var value=substation[chosen_sort][i];
var label=substation[chosen_sort][++i]
document.all.substation.options [i/2] = new Option(label,value);
  }
}
}
</script>
	<body>
		<html:form action="/com/user/manage/jluserinfo">
			<html:hidden property="method" />
			<html:hidden property="stationList" />
			<html:hidden property="stationTextList" />
			<html:hidden property="registeredAddress" />
			<table width="97%" border="0" cellpadding="0" cellspacing="1"
				class="line1" align="center">
				<tr>
					<td>
						<table width="100%" border="0">
							<tr>
								<td colspan="4" class="titlebg">
									基本信息
								</td>
							</tr>
							<tr>
								<td width="10%" class="mtdtitle1">
									*姓名:
								</td>
								<td class="mtdtextleft">
									<html:text property="name" styleClass="input1"></html:text>
								</td>
								<td width="10%" class="mtdtitle1">
									*性别:
								</td>
								<td class="mtdtextleft">
									<html:text property="sex" styleClass="input1"></html:text>
								</td>
							</tr>

							<tr>
								<td class="mtdtitle1">
									*出生年月:
								</td>
								<td colspan="3" class="mtdtextleft">
									<html:text property="birthday" styleClass="input1"
										onclick="datepopup(this);"></html:text>
								</td>
							</tr>

							<tr>
								<td class="mtdtitle1">
									*学校:
								</td>
								<td class="mtdtextleft">
									<html:text property="schoolName" styleClass="input1"></html:text>
								</td>
								<td class="mtdtitle1">
									*学历:
								</td>
								<td class="mtdtextleft">
									<html:text property="education" styleClass="input1"></html:text>
								</td>
							</tr>

							<tr>
								<td class="mtdtitle1">
									*专业:
								</td>
								<td colspan="3" class="mtdtextleft">
									<html:text property="speciality" styleClass="input1"></html:text>
								</td>
							</tr>

							<tr>
								<td class="mtdtitle1">
									*手机:
								</td>
								<td class="mtdtextleft">
									<html:text property="mobilphone" styleClass="input1"></html:text>
								</td>
								<td class="mtdtitle1">
									*电话号码:
								</td>
								<td class="mtdtextleft">
									<html:text property="telephone" styleClass="input1"></html:text>
								</td>
							</tr>

							<tr>
								<td class="mtdtitle1">
									*联系地址:
								</td>
								<td colspan="3" class="mtdtextleft">
									<html:textarea property="nowAddress" cols="80%"
										styleClass="input1"></html:textarea>
								</td>
							</tr>

							<tr>
								<td class="mtdtitle1">
									*联系地址邮编:
								</td>
								<td colspan="3" class="mtdtextleft">
									<html:text property="nowPostalCode" styleClass="input1"></html:text>
								</td>
							</tr>

							<tr>
								<td class="mtdtitle1">
									户口所在地:
								</td>
								<td colspan="3" class="mtdtextleft">
									<input type="text" id="regAddrPro" class="input1"/>省
								    <input type="text" id="regAddrCity" class="input1"/>市(县)
								    <script type="text/javascript">
								    document.all.regAddrPro.value='<bean:write property="regAddrPro" name="com_struts_web_user_register_RegUserInfoForm"/>';
								    document.all.regAddrCity.value='<bean:write property="regAddrCity" name="com_struts_web_user_register_RegUserInfoForm"/>';
								    </script>
								</td>
							</tr>

							<tr>
								<td class="mtdtitle1">
									户口所在地邮编:
								</td>
								<td colspan="3" class="mtdtextleft">
									<html:text property="regPostalCode" styleClass="input1"></html:text>
								</td>
							</tr>

							<tr>
								<td colspan="4" class="titlebg">
									求职意向
								</td>
							</tr>
							<tr>
								<td align="left" valign="top" class="mtdtitle1" colspan="4">
								<table>
								<tr>
								<td>
									<table width="100%" cellpadding="0" cellspacing="0"
										class="mtdtitle1" align="center" border="1">
										<tr>
														<td align="right">
															<select id="stationSort" style="width:200"
																onchange="doSubstation()">
																<SCRIPT language="JavaScript">
			        for (var i = 0; i < (station.length); i++) {
			         document.write("<OPTION value='"+station[i]+"'");
			    document.write(">" + station[++i]+"</OPTION>");	
			  }
			</SCRIPT>
															</select>
														</td>
														<td rowspan="2" align="center">
															<input type="button" value="》" id="sr2l"
																onclick="Left2Right(document.all.substation,document.all.ssubstation,3,0,'')" />
															<input type="button" value="《" id="sd"
																onclick="deloption(document.all.ssubstation)" />
														</td>
														<td rowspan="2" align="left" class="mtdtitle1">
															<select id="ssubstation" size="4" style="width:200">
                                                            <SCRIPT language="JavaScript">
			        for (var i = 0; i < (favoriteList.length); i++) {
			         document.write("<OPTION value='"+favoriteList[i]+"'");
			    document.write(">" + favoriteList[++i]+"</OPTION>");	
			  }
			</SCRIPT>
															</select>

														</td>
													</tr>
													<tr>
														<td align="right" class="mtdtitle1">
															<select id="substation" size="4" style="width:200"></select>
														</td>
													</tr>
									</table>
								</td>
							</tr>
						</table>
					</td>
				</tr>

				<tr>
					<td colspan="4">
						<table width="100%" class="line1">
							<tr>
								<td class="titlebg" colspan="2">
									教育背景
								</td>
							</tr>

							<tr>
								<td width="30%" class="mtdtitle1">
									何年何月
								</td>
								<td class="mtdtitle1">
									何地就读
								</td>
							</tr>

							<tr>
								<td class="mtdtextcenterwrite">
									<html:text property="educationBgDate1"
										onclick="datepopup(this);" size="10"></html:text>
									至
									<html:text property="educationBgDate12"
										onclick="datepopup(this);" size="10"></html:text>
								</td>
								<td class="mtdtextcenterwrite">
									<html:text property="educationBg1" size="55"></html:text>
								</td>
							</tr>

							<tr>
								<td class="mtdtextcenterwrite">
									<html:text property="educationBgDate2"
										onclick="datepopup(this);" size="10"></html:text>
									至
									<html:text property="educationBgDate22"
										onclick="datepopup(this);" size="10"></html:text>
								</td>
								<td class="mtdtextcenterwrite">
									<html:text property="educationBg2" size="55"></html:text>
								</td>
							</tr>

							<tr>
								<td class="mtdtextcenterwrite">
									<html:text property="educationBgDate3"
										onclick="datepopup(this);" size="10"></html:text>
									至
									<html:text property="educationBgDate32"
										onclick="datepopup(this);" size="10"></html:text>
								</td>
								<td class="mtdtextcenterwrite">
									<html:text property="educationBg3" size="55"></html:text>
								</td>
							</tr>

							<tr>
								<td class="titlebg" colspan="2">
									英语能力
								</td>
							</tr>

							<tr>
								<td class="mtdtextcenterwrite" colspan="2">
									<html:textarea property="english" cols="80%"
										styleClass="input1"></html:textarea>
								</td>
							</tr>

							<tr>
								<td class="titlebg" colspan="2">
									专业能力
								</td>
							</tr>


							<tr>
								<td class="mtdtextcenterwrite" colspan="2">
									<html:textarea property="specialityLevel" cols="80%"
										styleClass="input1"></html:textarea>
								</td>
							</tr>

							<tr>
								<td class="titlebg" colspan="2">
									社会实践
								</td>
							</tr>

							<tr>
								<td class="mtdtitle1">
									何年何月
								</td>
								<td class="mtdtitle1">
									实践内容
								</td>
							</tr>

							<tr>
								<td class="mtdtextcenterwrite">
									<html:text size="10" property="socialityDate1"
										onclick="datepopup(this);"></html:text>
									至
									<html:text size="10" property="socialityDate12"
										onclick="datepopup(this);"></html:text>
								</td>
								<td class="mtdtextcenterwrite">
									<html:text property="sociality1" size="55" maxlength="50"></html:text>
								</td>
							</tr>

							<tr>
								<td class="mtdtextcenterwrite">
									<html:text size="10" property="socialityDate2"
										onclick="datepopup(this);"></html:text>
									至
									<html:text size="10" property="socialityDate22"
										onclick="datepopup(this);"></html:text>
								</td>
								<td class="mtdtextcenterwrite">
									<html:text property="sociality2" size="55" maxlength="50"></html:text>
								</td>
							</tr>

							<tr>
								<td class="mtdtextcenterwrite">
									<html:text size="10" property="socialityDate3"
										onclick="datepopup(this);"></html:text>
									至
									<html:text size="10" property="socialityDate32"
										onclick="datepopup(this);"></html:text>
								</td>
								<td class="mtdtextcenterwrite">
									<html:text property="sociality3" size="55" maxlength="50"></html:text>
								</td>
							</tr>

							<tr>
								<td class="titlebg" colspan="2">
									主修课程
								</td>
							</tr>

							<tr>
								<td class="mtdtextcenterwrite" colspan="2">
									<html:textarea property="course" cols="80%" styleClass="input1"></html:textarea>
								</td>
							</tr>

							<tr>
								<td class="titlebg" colspan="2">
									自我评价
								</td>
							</tr>

							<tr>
								<td class="mtdtextcenterwrite" colspan="2">
									<html:textarea property="descriptYourself" cols="80%"
										styleClass="input1"></html:textarea>
								</td>
							</tr>

							<tr>
								<td class="titlebg" colspan="2">
									特长、爱好
								</td>
							</tr>

							<tr>
								<td class="mtdtextcenterwrite" colspan="2" width="100%">
									<html:textarea property="features" cols="80%"
										styleClass="input1"></html:textarea>
								</td>
							</tr>

							<tr>
								<td colspan="2" class="mtdtitle1">
									<input type="submit" value="保存" class="tbutton"
										onclick="doMethod('edit')" />

								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
			</td>
			</tr>
			</table>
		</html:form>
	</body>
</html>
